package com.training.bt.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("peer_activity")
public class PeerActivity {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private String torrentHash;

    private Long uploaded;

    private Long downloaded;

    private LocalDateTime lastAnnounceTime;

    private LocalDateTime seedingStartTime;

    private Boolean isSeeding;
}
